package com.example.demo.enums;

public enum BookStatusEnums {
    DELETE(0,"删除"),
    NORMAL(1,"可借阅"),
    FORMAL(2,"不可借阅")
    ;

    public static BookStatusEnums getInformationByStatus(int status){
        switch (status){
            case 0:return BookStatusEnums.DELETE;
            case 1:return BookStatusEnums.NORMAL;
            case 2:return BookStatusEnums.FORMAL;
            default:return null;
        }
    }
    private int status;
    private String statusCN;

    BookStatusEnums(int status, String statusCN) {
        this.status=status;
        this.statusCN=statusCN;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusCN() {
        return statusCN;
    }

    public void setStatusCN(String statusCN) {
        this.statusCN = statusCN;
    }
}
